.class public final Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;
.super Landroid/widget/FrameLayout;
.source "GPSStatusView.kt"

# interfaces
.implements Llt/farmis/libraries/externalgps/ExternalGPSThread$StatusListener;
.implements Llt/farmis/libraries/externalgps/ExternalGPSThread$LocationUpdateListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView$Companion;
    }
.end annotation


# static fields
.field public static final Companion:Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView$Companion;


# instance fields
.field private accuracy:Landroid/widget/TextView;

.field private accuracyLayout:Landroid/view/View;

.field private dateFormat:Ljava/text/SimpleDateFormat;

.field private hdop:Landroid/widget/TextView;

.field private hdopLayout:Landroid/view/View;

.field private lastFix:Landroid/widget/TextView;

.field private lastFixLayout:Landroid/view/View;

.field private lastUpdate:J

.field private last_connected:Landroid/widget/TextView;

.field private last_connectedLayout:Landroid/view/View;

.field private latlon:Landroid/widget/TextView;

.field private latlonLayout:Landroid/view/View;

.field private mode:I

.field private quality:Landroid/widget/TextView;

.field private qualityLayout:Landroid/view/View;

.field private satellites:Landroid/widget/TextView;

.field private satellitesLayout:Landroid/view/View;

.field private speed:Landroid/widget/TextView;

.field private speedLayout:Landroid/view/View;

.field private status:Landroid/widget/TextView;

.field private statusLayout:Landroid/view/View;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    new-instance v0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView$Companion;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V

    sput-object v0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->Companion:Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView$Companion;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .locals 3

    const-string v0, "context"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 66
    invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    const/4 v0, 0x1

    .line 62
    iput v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->mode:I

    .line 64
    new-instance v0, Ljava/text/SimpleDateFormat;

    invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;

    move-result-object v1

    const-string v2, "HH:mm:ss:SSS"

    invoke-direct {v0, v2, v1}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;Ljava/util/Locale;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->dateFormat:Ljava/text/SimpleDateFormat;

    .line 67
    invoke-virtual {p0, p1}, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->initialize(Landroid/content/Context;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 2

    const-string v0, "context"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 69
    invoke-direct {p0, p1, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const/4 p2, 0x1

    .line 62
    iput p2, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->mode:I

    .line 64
    new-instance p2, Ljava/text/SimpleDateFormat;

    invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;

    move-result-object v0

    const-string v1, "HH:mm:ss:SSS"

    invoke-direct {p2, v1, v0}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;Ljava/util/Locale;)V

    iput-object p2, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->dateFormat:Ljava/text/SimpleDateFormat;

    .line 70
    invoke-virtual {p0, p1}, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->initialize(Landroid/content/Context;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 1

    const-string v0, "context"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 72
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    const/4 p2, 0x1

    .line 62
    iput p2, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->mode:I

    .line 64
    new-instance p2, Ljava/text/SimpleDateFormat;

    invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;

    move-result-object p3

    const-string v0, "HH:mm:ss:SSS"

    invoke-direct {p2, v0, p3}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;Ljava/util/Locale;)V

    iput-object p2, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->dateFormat:Ljava/text/SimpleDateFormat;

    .line 73
    invoke-virtual {p0, p1}, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->initialize(Landroid/content/Context;)V

    return-void
.end method

.method public static final synthetic access$getAccuracy$p(Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;)Landroid/widget/TextView;
    .locals 0

    .line 27
    iget-object p0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->accuracy:Landroid/widget/TextView;

    return-object p0
.end method

.method public static final synthetic access$getDateFormat$p(Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;)Ljava/text/SimpleDateFormat;
    .locals 0

    .line 27
    iget-object p0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->dateFormat:Ljava/text/SimpleDateFormat;

    return-object p0
.end method

.method public static final synthetic access$getHdop$p(Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;)Landroid/widget/TextView;
    .locals 0

    .line 27
    iget-object p0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->hdop:Landroid/widget/TextView;

    return-object p0
.end method

.method public static final synthetic access$getLastFix$p(Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;)Landroid/widget/TextView;
    .locals 0

    .line 27
    iget-object p0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->lastFix:Landroid/widget/TextView;

    return-object p0
.end method

.method public static final synthetic access$getLastUpdate$p(Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;)J
    .locals 2

    .line 27
    iget-wide v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->lastUpdate:J

    return-wide v0
.end method

.method public static final synthetic access$getLast_connected$p(Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;)Landroid/widget/TextView;
    .locals 0

    .line 27
    iget-object p0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->last_connected:Landroid/widget/TextView;

    return-object p0
.end method

.method public static final synthetic access$getLatlon$p(Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;)Landroid/widget/TextView;
    .locals 0

    .line 27
    iget-object p0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->latlon:Landroid/widget/TextView;

    return-object p0
.end method

.method public static final synthetic access$getSatellites$p(Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;)Landroid/widget/TextView;
    .locals 0

    .line 27
    iget-object p0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->satellites:Landroid/widget/TextView;

    return-object p0
.end method

.method public static final synthetic access$getSpeed$p(Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;)Landroid/widget/TextView;
    .locals 0

    .line 27
    iget-object p0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->speed:Landroid/widget/TextView;

    return-object p0
.end method

.method public static final synthetic access$getStatus$p(Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;)Landroid/widget/TextView;
    .locals 0

    .line 27
    iget-object p0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->status:Landroid/widget/TextView;

    return-object p0
.end method

.method public static final synthetic access$setLastUpdate$p(Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;J)V
    .locals 0

    .line 27
    iput-wide p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->lastUpdate:J

    return-void
.end method


# virtual methods
.method public final initialize(Landroid/content/Context;)V
    .locals 2

    const-string v0, "context"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 77
    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p1

    const v0, 0x7f0c0068

    const/4 v1, 0x0

    invoke-virtual {p1, v0, p0, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    .line 78
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->removeAllViews()V

    .line 79
    invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V

    const v0, 0x7f090122

    .line 81
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->hdop:Landroid/widget/TextView;

    const v0, 0x7f09014b

    .line 82
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->latlon:Landroid/widget/TextView;

    const v0, 0x7f090219

    .line 83
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->speed:Landroid/widget/TextView;

    const v0, 0x7f09022f

    .line 84
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->status:Landroid/widget/TextView;

    const v0, 0x7f09014a

    .line 85
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->last_connected:Landroid/widget/TextView;

    const v0, 0x7f0901e7

    .line 86
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->satellites:Landroid/widget/TextView;

    const v0, 0x7f090149

    .line 87
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->lastFix:Landroid/widget/TextView;

    const v0, 0x7f090029

    .line 88
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->accuracy:Landroid/widget/TextView;

    const v0, 0x7f0901cc

    .line 89
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->quality:Landroid/widget/TextView;

    const v0, 0x7f090123

    .line 92
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->hdopLayout:Landroid/view/View;

    const v0, 0x7f09014c

    .line 93
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->latlonLayout:Landroid/view/View;

    const v0, 0x7f09021a

    .line 94
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->speedLayout:Landroid/view/View;

    const v0, 0x7f090230

    .line 95
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->statusLayout:Landroid/view/View;

    const v0, 0x7f0901d1

    .line 96
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->last_connectedLayout:Landroid/view/View;

    const v0, 0x7f0901e8

    .line 97
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->satellitesLayout:Landroid/view/View;

    const v0, 0x7f09025c

    .line 98
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->lastFixLayout:Landroid/view/View;

    const v0, 0x7f09002a

    .line 99
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->accuracyLayout:Landroid/view/View;

    const v0, 0x7f0901cd

    .line 100
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    iput-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->qualityLayout:Landroid/view/View;

    return-void
.end method

.method public final onLocationUpdate(Landroid/location/Location;)V
    .locals 1

    const-string v0, "location"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 207
    new-instance v0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView$onLocationUpdate$2;

    invoke-direct {v0, p0, p1}, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView$onLocationUpdate$2;-><init>(Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;Landroid/location/Location;)V

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->post(Ljava/lang/Runnable;)Z

    return-void
.end method

.method public onLocationUpdate(Llt/farmis/libraries/externalgps/GPSLocation;)V
    .locals 1

    const-string v0, "location"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 146
    new-instance v0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView$onLocationUpdate$1;

    invoke-direct {v0, p0, p1}, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView$onLocationUpdate$1;-><init>(Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;Llt/farmis/libraries/externalgps/GPSLocation;)V

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->post(Ljava/lang/Runnable;)Z

    return-void
.end method

.method public final onQualityChanged(Ljava/lang/Integer;)V
    .locals 2

    if-nez p1, :cond_1

    .line 164
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->quality:Landroid/widget/TextView;

    if-eqz p1, :cond_0

    const-string v0, "-"

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    return-void

    .line 169
    :cond_1
    invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I

    move-result v0

    if-nez v0, :cond_2

    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->quality:Landroid/widget/TextView;

    if-eqz p1, :cond_a

    const-string v0, "Fix not valid"

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_0

    .line 170
    :cond_2
    invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_3

    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->quality:Landroid/widget/TextView;

    if-eqz p1, :cond_a

    const-string v0, "GPS fix"

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_0

    .line 171
    :cond_3
    invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I

    move-result v0

    const/4 v1, 0x2

    if-ne v0, v1, :cond_4

    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->quality:Landroid/widget/TextView;

    if-eqz p1, :cond_a

    const-string v0, "DGPS fix"

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_0

    .line 172
    :cond_4
    invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I

    move-result v0

    const/4 v1, 0x4

    if-ne v0, v1, :cond_5

    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->quality:Landroid/widget/TextView;

    if-eqz p1, :cond_a

    const-string v0, "RTK fixed"

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 173
    :cond_5
    invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I

    move-result v0

    const/4 v1, 0x5

    if-ne v0, v1, :cond_6

    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->quality:Landroid/widget/TextView;

    if-eqz p1, :cond_a

    const-string v0, "RTK float"

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 174
    :cond_6
    invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I

    move-result v0

    const/4 v1, 0x6

    if-ne v0, v1, :cond_7

    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->quality:Landroid/widget/TextView;

    if-eqz p1, :cond_a

    const-string v0, "Dead reckoning"

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 175
    :cond_7
    invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I

    move-result v0

    const/4 v1, 0x7

    if-ne v0, v1, :cond_8

    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->quality:Landroid/widget/TextView;

    if-eqz p1, :cond_a

    const-string v0, "Manual input"

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 176
    :cond_8
    invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I

    move-result v0

    const/16 v1, 0x8

    if-ne v0, v1, :cond_9

    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->quality:Landroid/widget/TextView;

    if-eqz p1, :cond_a

    const-string v0, "Simulator mode"

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 177
    :cond_9
    invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I

    move-result p1

    const/16 v0, 0x9

    if-ne p1, v0, :cond_a

    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->quality:Landroid/widget/TextView;

    if-eqz p1, :cond_a

    const-string v0, "WAAS"

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_a
    :goto_0
    return-void
.end method

.method public onStatusChanged(Llt/farmis/libraries/externalgps/providers/Status;)V
    .locals 1

    const-string v0, "state"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 231
    new-instance v0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView$onStatusChanged$1;

    invoke-direct {v0, p0, p1}, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView$onStatusChanged$1;-><init>(Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;Llt/farmis/libraries/externalgps/providers/Status;)V

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->post(Ljava/lang/Runnable;)Z

    return-void
.end method

.method public final parseDate(Ljava/lang/Float;)Ljava/lang/String;
    .locals 5

    if-nez p1, :cond_0

    const-string p1, "-"

    return-object p1

    .line 187
    :cond_0
    invoke-virtual {p1}, Ljava/lang/Float;->floatValue()F

    move-result v0

    float-to-int v0, v0

    .line 189
    div-int/lit16 v1, v0, 0x2710

    .line 190
    rem-int/lit16 v2, v0, 0x2710

    div-int/lit8 v2, v2, 0x64

    .line 191
    rem-int/lit8 v0, v0, 0x64

    .line 192
    invoke-virtual {p1}, Ljava/lang/Float;->floatValue()F

    move-result p1

    const/4 v3, 0x1

    int-to-float v3, v3

    rem-float/2addr p1, v3

    const/16 v3, 0x3e8

    int-to-float v3, v3

    mul-float p1, p1, v3

    float-to-int p1, p1

    const-string v3, "GMT"

    .line 194
    invoke-static {v3}, Ljava/util/TimeZone;->getTimeZone(Ljava/lang/String;)Ljava/util/TimeZone;

    move-result-object v3

    invoke-static {v3}, Ljava/util/Calendar;->getInstance(Ljava/util/TimeZone;)Ljava/util/Calendar;

    move-result-object v3

    const/16 v4, 0xb

    .line 196
    invoke-virtual {v3, v4, v1}, Ljava/util/Calendar;->set(II)V

    const/16 v1, 0xc

    .line 197
    invoke-virtual {v3, v1, v2}, Ljava/util/Calendar;->set(II)V

    const/16 v1, 0xd

    .line 198
    invoke-virtual {v3, v1, v0}, Ljava/util/Calendar;->set(II)V

    const/16 v0, 0xe

    .line 199
    invoke-virtual {v3, v0, p1}, Ljava/util/Calendar;->set(II)V

    .line 201
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->dateFormat:Ljava/text/SimpleDateFormat;

    new-instance v0, Ljava/util/Date;

    const-string v1, "calendar"

    invoke-static {v3, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {v3}, Ljava/util/Calendar;->getTimeInMillis()J

    move-result-wide v1

    invoke-direct {v0, v1, v2}, Ljava/util/Date;-><init>(J)V

    invoke-virtual {p1, v0}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object p1

    const-string v0, "dateFormat.format(Date(calendar.timeInMillis))"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    return-object p1
.end method

.method public final setLastDevice(Ljava/lang/String;)V
    .locals 1

    const-string v0, "name"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 274
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->last_connected:Landroid/widget/TextView;

    if-eqz v0, :cond_0

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    return-void
.end method

.method public final setMode(I)V
    .locals 3

    .line 104
    iput p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->mode:I

    const/4 v0, 0x1

    const/16 v1, 0x8

    const/4 v2, 0x0

    if-eq p1, v0, :cond_12

    const/4 v0, 0x2

    if-eq p1, v0, :cond_9

    const/4 v0, 0x3

    if-eq p1, v0, :cond_0

    goto/16 :goto_0

    .line 132
    :cond_0
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->hdopLayout:Landroid/view/View;

    if-eqz p1, :cond_1

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 133
    :cond_1
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->latlonLayout:Landroid/view/View;

    if-eqz p1, :cond_2

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 134
    :cond_2
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->speedLayout:Landroid/view/View;

    if-eqz p1, :cond_3

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 135
    :cond_3
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->statusLayout:Landroid/view/View;

    if-eqz p1, :cond_4

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 136
    :cond_4
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->last_connectedLayout:Landroid/view/View;

    if-eqz p1, :cond_5

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 137
    :cond_5
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->satellitesLayout:Landroid/view/View;

    if-eqz p1, :cond_6

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 138
    :cond_6
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->lastFixLayout:Landroid/view/View;

    if-eqz p1, :cond_7

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 139
    :cond_7
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->accuracyLayout:Landroid/view/View;

    if-eqz p1, :cond_8

    invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V

    .line 140
    :cond_8
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->qualityLayout:Landroid/view/View;

    if-eqz p1, :cond_1b

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    goto/16 :goto_0

    .line 121
    :cond_9
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->hdopLayout:Landroid/view/View;

    if-eqz p1, :cond_a

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 122
    :cond_a
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->latlonLayout:Landroid/view/View;

    if-eqz p1, :cond_b

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 123
    :cond_b
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->speedLayout:Landroid/view/View;

    if-eqz p1, :cond_c

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 124
    :cond_c
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->statusLayout:Landroid/view/View;

    if-eqz p1, :cond_d

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 125
    :cond_d
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->last_connectedLayout:Landroid/view/View;

    if-eqz p1, :cond_e

    invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V

    .line 126
    :cond_e
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->satellitesLayout:Landroid/view/View;

    if-eqz p1, :cond_f

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 127
    :cond_f
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->lastFixLayout:Landroid/view/View;

    if-eqz p1, :cond_10

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 128
    :cond_10
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->accuracyLayout:Landroid/view/View;

    if-eqz p1, :cond_11

    invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V

    .line 129
    :cond_11
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->qualityLayout:Landroid/view/View;

    if-eqz p1, :cond_1b

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0

    .line 110
    :cond_12
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->hdopLayout:Landroid/view/View;

    if-eqz p1, :cond_13

    invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V

    .line 111
    :cond_13
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->latlonLayout:Landroid/view/View;

    if-eqz p1, :cond_14

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 112
    :cond_14
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->speedLayout:Landroid/view/View;

    if-eqz p1, :cond_15

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 113
    :cond_15
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->statusLayout:Landroid/view/View;

    if-eqz p1, :cond_16

    invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V

    .line 114
    :cond_16
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->last_connectedLayout:Landroid/view/View;

    if-eqz p1, :cond_17

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 115
    :cond_17
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->satellitesLayout:Landroid/view/View;

    if-eqz p1, :cond_18

    invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V

    .line 116
    :cond_18
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->lastFixLayout:Landroid/view/View;

    if-eqz p1, :cond_19

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 117
    :cond_19
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->accuracyLayout:Landroid/view/View;

    if-eqz p1, :cond_1a

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 118
    :cond_1a
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->qualityLayout:Landroid/view/View;

    if-eqz p1, :cond_1b

    invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V

    :cond_1b
    :goto_0
    return-void
.end method
